﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Http;

namespace WpfApp2
{
    public class Values34Controller : ApiController
    {
        public IEnumerable<string> Get()
        {
            return new string[] { "value1", "value2", "value3" };
        }

        public string Get(int id)
        {
            return "value" + id;
        }

        [HttpPost]
        public string Find(string myname)
        {
            return "Find";
        }


        [HttpPost()]
        public string Find2(string myname,int k)
        {
            return "Find2";
        }

        //public int GetIndex()
        //{
        //    return 100;
        //}

        public Person Post([FromBody] Person value)
        {
            value.Name = value.Name.ToUpper();
            return value;
        }

        public void Put(int id, [FromBody] string value)
        {

        }

        public void Delete(int id)
        {

        }
    } 
}
